//
//  XLTabBar.h
//  XLTabBarController
//
//  Created by ZxlAndZyp on 2019/1/8.
//  Copyright © 2019 zuoxueliang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XLTabBarConfig.h"
@class XLTabBar;
@protocol XLTabBarDelegate <NSObject>

/**
 tabBar点击事件

 @param tabBar tabBar控件
 @param selectIndex tabBar button控件下标
 */
- (void)tabBar:(XLTabBar *)tabBar disSelectIndex:(NSInteger)selectIndex;

@end
NS_ASSUME_NONNULL_BEGIN

@interface XLTabBar : UITabBar

@property (nonatomic ,weak) id <XLTabBarDelegate>tabBarDelegate; /**< tabbar 代理 */

@property (nonatomic ,assign) NSInteger selectedIndex; /**< 选择tabbar button 下标 默认为0 */

- (instancetype)initWithFrame:(CGRect)frame
                    norImages:(NSArray *)norImages
                    selImages:(NSArray *)selImages
                       titles:(NSArray *)titles
                       config:(XLTabBarConfig *)config;

@end

NS_ASSUME_NONNULL_END
